
import MASS.*;
import java.util.logging.Level;
import java.util.logging.Logger;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author brett
 */
public class MASSL3Driver {
        // CONSTANTS - MASS arguments
    private static final String[] MASSARGS = {"dslab", "dslab-302",
        "machinefile.txt", "12345"};    // connection arguments
    private static final int NPROCESSES = 1;    // number of processes to employ
    private static final int NTHREADS = 2;      // number of threads to employ
    private static final int HANDLE = 0;        // unique Places handle number
    // CONSTANTS - functions
    private static final int init_ = 0;          // initialize Places
    
        private static final int DAYS = 30;          // days of data collection
    private static final int DAYSEGMENTS = 4;    // time slices per day
        private static final int XRANGE = 123;
    private static final int YRANGE = 162;
    //Place MassL3Heatwave;
        
    public static void main(String[] args) { 
        try {
            MASS.init(MASSARGS, NPROCESSES, NTHREADS);
            Places geography, month;
            month = new Places(HANDLE, "MassL3Heatwave", null, DAYS, DAYSEGMENTS);
            geography = new Places(HANDLE + 1, "MassL3bHeatwave", null, XRANGE, YRANGE);
            geography.callAll(init_);
            month.callAll(init_);
            month.callAll(1);
            month.callAll(3);
                      
            
            
            MASS.finish();
        } catch (Exception ex) {
            Logger.getLogger(MASSL3Driver.class.getName()).log(Level.SEVERE, null, ex);
        }
        
    }
    
}
